package com.ruoyi.web.controller.biz;

import com.ruoyi.common.core.controller.BaseController;
import com.ruoyi.common.core.domain.Result;
import com.ruoyi.common.core.page.TableDataInfo;
import com.ruoyi.system.domain.BsQiyeMerchandise;
import com.ruoyi.system.service.IBsQiyeMerchandiseService;
import com.ruoyi.system.service.IBsQiyeService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiImplicitParam;
import io.swagger.annotations.ApiImplicitParams;
import io.swagger.annotations.ApiOperation;
import lombok.RequiredArgsConstructor;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * 企业经营数据
 *
 * @author ruoyi
 * @date 2023-11-23
 */
@Validated
@RequiredArgsConstructor
@RestController
@Api(tags = "游客端-文创数据")
@RequestMapping("/customer/culturalAndCreative")
public class BsCulturalAndCreativeYoukeController extends BaseController {

    private final IBsQiyeMerchandiseService iBsQiyeMerchandiseService;


    //商品列表
    @ApiOperation(value = "商品-列表", tags = {"游客端-文创数据"})
    @ApiImplicitParams({
            @ApiImplicitParam(name = "pageNum", value = "分页参数：第几页"),
            @ApiImplicitParam(name = "pageSize", value = "分页参数：每页条数"),
    })
    @GetMapping("/merchandiseList")
    public Result<TableDataInfo<BsQiyeMerchandise>> enterList() {
        startPage();
        List<BsQiyeMerchandise> list = iBsQiyeMerchandiseService.queryList();
        return Result.success(getDataTable(list));
    }


}
